<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>开户管理</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/kaihuguanli.css"/>
	</head>
	<body>
		<div class="wrapper">
			<div class="top">
		 	 	<p class="top-p1" onclick="javascript:history.back(-1);"> < </p>
		 	 	<p class="top-p2">开户管理</p>
		 	</div>
		 	<form action="" id="formdata" method="post">
			 	<div class="content">
			 		<div class="content1">
			 			<a href="{:url('link/makeLink')}" class="content11">代理</a>
			 			<a href="#" class="content12">会员</a>
			 		</div>
			 		<div class="content2">
			 			<p>会员账户：</p>
			 			<input type="text" name="name" placeholder="请输入用户名"/>
			 		</div>
			 		<div class="content2">
			 			<p>会员密码：</p>
			 			<input type="password" name="pass" placeholder="请设置密码"/>
			 		</div>
			 		<div class="content2">
			 			<p>确认密码：</p>
			 			<input type="password" name="repass" placeholder="请确认密码"/>
			 		</div>
			 		<div class="content2">
			 			<p>QQ账号：</p>
			 			<input type="number" name="qq" placeholder="请输入QQ账号"/>
			 		</div>
			 		<div class="content2">
			 			<p>返点(%)：</p>
			 			<input type="number" name="rebate" placeholder="返点为0%-{$rebate}%"/>
			 		</div>
			 		<div class="content3">
			 			增加会员
			 		</div>
			 	</div>
		 	</form>
		</div>
	</body>
</html>
<script src="__STATIC__/home/js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/home/js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(".content3").click(function(){
		var bool=true;
		var pass,repass;
		var passInput=new Array();
		$('input').each(function(i){
			if(i==1){
				pass = $(this).val();
				passInput[i] = $(this);
			}
			if(i==2){
				repass=$(this).val();
				passInput[i] = $(this);
			}
			if(!$(this).val()) bool=false;
		})
		if(bool){
			if(pass !== repass){
				alert("两次密码输入不一致！");
				passInput[1].val("");
				passInput[2].val("");
			}else{
				$("#formdata").submit();
			}
		}else{
			alert("请将数据填写完整！");
		}
	})
</script>

